package cn.outmaneuver.outman.demo.web.domain.request;
/**
 * Copyright 2023-2023 by DongYaoMing. All Rights Reserved.
 */

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * PostAndFormDTO
 * <p> </p>
 *
 * @author DongYaoMing
 * @version 1.0
 * @date 2023/10/17
 */
public class PostAndFormDTO {
    @DecimalMax("100")
    @DecimalMin("8")
    private Integer age;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

    @NotNull(message = "个人简介不能为空")
    private String description;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
